<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'one.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <h1>图书详情</h1>
   <table>
   <c:forEach items="${bookList}" var="item">
  	<tr>
   			<td>图书编号：</td>
   			 <td>${item.bookCode}</td>
   </tr>
   <tr>
   			<td>图书分类：</td>
   			 <td>${item.type.typeName}</td>
   </tr>
   <tr>
   			<td>图书名称：</td>
   			 <td>${item.bookName}</td>
   </tr>
   <tr>
   			<td>作者：</td>
   			 <td>${item.bookAuthor}</td>
   </tr>
   <tr>
   			<td>出版社：</td>
   			 <td>${item.publishPress}</td>
   </tr>
   <tr>
   			<td>是否借阅：</td>
   			 <td><c:if test="${item.borrowed==1}">已借阅</c:if>
					<c:if test="${item.borrowed==0}">未借阅</c:if>
				</td>
   </tr>
    <tr>
   			<td>出版日期：</td>
   			 <td>${item.creationTime}<%-- <fmt:formatDate value="${item.creationTime }"
						pattern="yyyy-MM-dd" /> --%></td>
   </tr>
  
   <tr>
   			<td>经办人：</td>
   			 <td>${item.createdBy}</td>
   </tr>
   <tr>
   			<td>入库时间：</td>
   			 <td>${item.creationTime }<%-- <fmt:formatDate value="${item.creationTime }"
						pattern="yyyy-MM-dd" /> --%></td>
   </tr>
   <tr>
   <td><a href="book/all">返回</a></td>
   </tr>
  </c:forEach>
   		
   </table>
  </body>
</html>
